package com.qire.other.share;

import java.util.HashMap;

public class ShareActionFactory {
	public static final HashMap<String, ShareAction> shareActionMap = new HashMap<>();
	
	static {
		shareActionMap.put("WeChatMoments", new WeChatMomentsShareAction());
		shareActionMap.put("WeChat", new WeChatShareAction());
		shareActionMap.put("QQ", new QQShareAction());
		shareActionMap.put("QZone", new QZoneShareAction());
		shareActionMap.put("Sina", new SinaShareAction());
	}
	
	public static ShareAction create(String shareActionName) {
		return shareActionMap.get(shareActionName);
	}
}
